package zzu.mxd.answer.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import zzu.mxd.answer.entity.Exercises;

/**
 * Created by MXD on 2018/11/9.
 */
@Data
public class ExercisesVO {
    @ApiModelProperty("习题")
    private Exercises exercises;

    @ApiModelProperty("用户选项")
    private String option;

    /**
     * 判断是否正确
     * @return
     */
    public boolean judjeRight(){
        if (exercises.getOptionRight().equals(option))
            return true;
        return false;
    }
}
